xen/vcpu: Introduce vcpu_destroy()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 5 Sep 2018 17:32:52 +0000 (17:32 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 17 Sep 2018 11:53:09 +0000 (12:53 +0100)
commit1ffeb99669a3ba9cde3063596a9b805023c90ea7
tree32090269d6262daec02e51a9ab7295c940ba780d
parent880a4a808fcb9b24058d414fa11918397abc4850
xen/vcpu: Introduce vcpu_destroy()

Like _domain_destroy(), this will eventually idempotently free all parts of a
struct vcpu.

While breaking apart the failure path of vcpu_create(), rework the codeflow to
be in a line at the end of the function for clarity.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/common/domain.c